package com.wang.redis;

import redis.clients.jedis.Jedis;

public class TestPool {

	public static void main(String[] args) {
		Jedis jedis = null;
		try{			
			jedis = RedisPool.getJedis();
			System.out.println(jedis.ping()+" 连接成功！");
			System.out.println(jedis.type("mySet"));
			
			
			
			
			
			
			
		}catch(Exception e){
			e.printStackTrace();
		}finally{
			RedisPool.returnResource(jedis);
		}
		
			
	}
	
}
